package com.generator.service.teachingTeam.impl;

import com.generator.dao.teachingTeam.TeachingTeamDao;
import com.generator.entity.teachingTeam.TeachingTeam;
import com.generator.service.teachingTeam.TeachingTeamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class TeachingTeamServiceBean implements TeachingTeamService {

    @Autowired
    private TeachingTeamDao teachingTeamDao;

    @Override
    public List<TeachingTeam> findAllTeachingTeams() {
        return teachingTeamDao.findAllTeachingTeams();
    }
}
